package base.java9_17;

import java.util.HexFormat;

/**
 * @author 王霄
 * @date 2022/3/6 21:03
 */
public class HexFormatDemo {
    public static void main(String[] args) {
        String hex = HexFormat.of()
                .withDelimiter(" ")
                .withUpperCase()
                .formatHex(new byte[]{0X0F, 0X0F});
        System.out.println(hex);
    }
}
